package tech.yangzhijie.basic.java04;

public class Java0501 {

    public static void main(String[] args) {

        Course course = new Course()
                .setChinese("语文")
                .setMath("数学")
                .setEnglish("英语")
                .setGeography("地理")
                .setHistory("历史")
                .setPolitical("政治")
                .setPhysical("物理")
                .setChemistry("化学")
                .setBiological("生物");
        System.out.println(course);
    }
}

class Course{
    // 高中学科
    private String chinese;
    private String math;
    private String english;
    private String geography;
    private String history;
    private String political;
    private String physical;
    private String chemistry;
    private String biological;

    @Override
    public String toString() {
        return "Course{" +
                "chinese='" + chinese + '\'' +
                ", math='" + math + '\'' +
                ", english='" + english + '\'' +
                ", geography='" + geography + '\'' +
                ", history='" + history + '\'' +
                ", political='" + political + '\'' +
                ", physical='" + physical + '\'' +
                ", chemistry='" + chemistry + '\'' +
                ", biological='" + biological + '\'' +
                '}';
    }

    public String getChinese() {
        return chinese;
    }

    public Course setChinese(String chinese) {
        this.chinese = chinese;
        return this;
    }

    public String getMath() {
        return math;
    }

    public Course setMath(String math) {
        this.math = math;
        return this;
    }

    public String getEnglish() {
        return english;
    }

    public Course setEnglish(String english) {
        this.english = english;
        return this;
    }

    public String getGeography() {
        return geography;
    }

    public Course setGeography(String geography) {
        this.geography = geography;
        return this;
    }

    public String getHistory() {
        return history;
    }

    public Course setHistory(String history) {
        this.history = history;
        return this;
    }

    public String getPolitical() {
        return political;
    }

    public Course setPolitical(String political) {
        this.political = political;
        return this;
    }

    public String getPhysical() {
        return physical;
    }

    public Course setPhysical(String physical) {
        this.physical = physical;
        return this;
    }

    public String getChemistry() {
        return chemistry;
    }

    public Course setChemistry(String chemistry) {
        this.chemistry = chemistry;
        return this;
    }

    public String getBiological() {
        return biological;
    }

    public Course setBiological(String biological) {
        this.biological = biological;
        return this;
    }
}
